import request from '@/utils/request'//引入ajax
const api_name = '/admin/system'
// 查询状态
export const findHeart = () => {
    return request({
        url: `${api_name}/findHeart`,
        method: 'get'
    })
}

//删除
export const DeleteHeart = (id) => {
    return request({
        url: `${api_name}/DelHeartById/${id}`,
        method: 'delete'
    })
}

//添加 
export const saveHeart = (xinli) => {
    return request({
        url: `${api_name}/saveHeart`,
        method: 'post',
        data:xinli
    })
}
//根据id查询信息 
export const findHeartById = (id) => {
    return request({
        url: `${api_name}/findHeartById/${id}`,
        method: 'get'
    })
}